﻿using IM.Easy.Infrastructure.Query;


namespace IM.Easy.AuthorizationServices.Dtos
{
    /// <summary>
    /// 刷新令牌表查询实体
    /// </summary>
    public class RefreshTokenQueryDto : QueryBase
    {
    }

    /// <summary>
    /// 刷新令牌表dto
    /// </summary>
    public class RefreshTokenDto
    {
        /// <summary>
        /// 主键KEY
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 刷新token
        /// </summary>
        public string Token { get; set; }
        /// <summary>
        /// 关联用户ID
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 令牌过期时间
        /// </summary>
        public DateTime Expires { get; set; }
        /// <summary>
        /// 令牌撤销时间
        /// </summary>
        public DateTime Revoked { get; set; }
        /// <summary>
        /// 替换此令牌的新令牌
        /// </summary>
        public string ReplacedByToken { get; set; }
        /// <summary>
        /// 令牌描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 删除状态
        /// </summary>
        public byte IsDeleted { get; set; }
    }
}
